package com.sfbest.test;

public class Thre {
	public static void main(String[] args) throws InterruptedException {
		Thread t = new Thread(new Processor05());
		t.start();
		t.sleep(3000);


		System.out.println(Thread.currentThread().getName() + "sleep 5s");
		t.interrupt();
//		Thread.sleep(3000);
		System.out.println(Thread.currentThread().getName() + "interrupt sleep");
	}
}
class Processor05 implements Runnable {
	public void run(){
			try{
				Thread.sleep(1000000000);
			}catch(InterruptedException e){
				e.printStackTrace();
			}
			for(int i=0;i<10;i++){
				System.out.println(Thread.currentThread().getName()+"...."+i);
			}
		}
}
